<template>
  <div class="question-item" v-for="(item,index) in props.list" :key="index" @click="goPage(item)">
    <div class="flex justify-between">
      <label>{{item.sjfl}}</label>
      <span style="color:#0000007f">{{item.lrsj}}</span>
    </div>
    <div class="flex items-center">
      <p class="ellipsis-3">{{item.zynr}}</p>
      <img class="more" src="@/assets/icon/icon-more.png" alt="">
    </div>
  </div>
</template>

<script lang="ts" setup>
import Navbar from '@/components/Navbar/index.vue'
import { useRouter, useRoute } from 'vue-router'
import EventServe from '@/api/event'
import Cookies from 'js-cookie'

defineOptions({
  name: 'QuestionItem'
})

const router = useRouter()

const props = defineProps({
  list: {
    type: Array,
    default: []
  }
})

const goPage = (item) => {
  router.push({
    path: "/event/livelihood/detail",
    query: item
  })
}


</script>

<script lang="ts">

</script>

<style lang="less" scoped>
.question-item{
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  color: #000000;
  line-height: 24px;
  font-size: 15px;
  margin-bottom: 10px;
  label{
    display: inline-block;
    border-radius: 3px;
    background: #FF621119;
    color: #FF6211;
    font-weight: bold;
    font-size: 13px;
    padding: 0 12px;
    height: 24px;
    line-height: 24px;
    margin-bottom: 5px;
  }
  .more{
    width: 12px;
    min-width: 12px;
    height: 24px;
    margin-left: 6px;
  }
}
</style>
